package xcmg.device.dao.mapper.salesReturn;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.salesReturn.SalesReturnInDetailDO;

import java.util.List;

/**
 * Created by LiChangjiang on 2018/3/6 0006.
 */
@Mapper
public interface ReturnInDetailMapper
{
    List<SalesReturnInDetailDO> list(String returnNo);

    List<SalesReturnInDetailDO> listForLocationUser(String returnNo);

    SalesReturnInDetailDO item(@Param("returnNo") String returnNo, @Param("materialNo") String materialNo);
    SalesReturnInDetailDO itemById(@Param("id") String id);

    int insert(SalesReturnInDetailDO inDetailDO);

    int update(SalesReturnInDetailDO inDetailDO);

    int remove(String id);

    int removeByNo(String returnNo);

    int updateStatus(@Param("status") int status, @Param("billNo") String billNo,@Param("materialsNo") String materialsNo);
}
